
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon FSLfont FSL-mgtv"></i>
                    <div class="name">mgtv</div>
                    <div class="fontclass">.FSL-mgtv</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-weixin"></i>
                    <div class="name">weixin</div>
                    <div class="fontclass">.FSL-weixin</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-full"></i>
                    <div class="name">full</div>
                    <div class="fontclass">.FSL-full</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-taobao"></i>
                    <div class="name">taobao</div>
                    <div class="fontclass">.FSL-taobao</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-youku"></i>
                    <div class="name">youku</div>
                    <div class="fontclass">.FSL-youku</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-facebook"></i>
                    <div class="name">facebook</div>
                    <div class="fontclass">.FSL-facebook</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-qq"></i>
                    <div class="name">qq</div>
                    <div class="fontclass">.FSL-qq</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-line"></i>
                    <div class="name">line</div>
                    <div class="fontclass">.FSL-line</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-alipay"></i>
                    <div class="name">alipay</div>
                    <div class="fontclass">.FSL-alipay</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-apple"></i>
                    <div class="name">apple</div>
                    <div class="fontclass">.FSL-apple</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-slack"></i>
                    <div class="name">slack</div>
                    <div class="fontclass">.FSL-slack</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-paypal"></i>
                    <div class="name">paypal</div>
                    <div class="fontclass">.FSL-paypal</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-amazon"></i>
                    <div class="name">amazon</div>
                    <div class="fontclass">.FSL-amazon</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-trello"></i>
                    <div class="name">trello</div>
                    <div class="fontclass">.FSL-trello</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-twitter"></i>
                    <div class="name">twitter</div>
                    <div class="fontclass">.FSL-twitter</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-teamviewer"></i>
                    <div class="name">teamviewer</div>
                    <div class="fontclass">.FSL-teamviewer</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-github"></i>
                    <div class="name">github</div>
                    <div class="fontclass">.FSL-github</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-google"></i>
                    <div class="name">google</div>
                    <div class="fontclass">.FSL-google</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-getpocket"></i>
                    <div class="name">getpocket</div>
                    <div class="fontclass">.FSL-getpocket</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-job"></i>
                    <div class="name">51job</div>
                    <div class="fontclass">.FSL-job</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-reddit"></i>
                    <div class="name">reddit</div>
                    <div class="fontclass">.FSL-reddit</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-baidu"></i>
                    <div class="name">baidu</div>
                    <div class="fontclass">.FSL-baidu</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-icon-test"></i>
                    <div class="name">163</div>
                    <div class="fontclass">.FSL-icon-test</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-ctrip"></i>
                    <div class="name">ctrip</div>
                    <div class="fontclass">.FSL-ctrip</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-xing"></i>
                    <div class="name">xing</div>
                    <div class="fontclass">.FSL-xing</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-douban"></i>
                    <div class="name">douban</div>
                    <div class="fontclass">.FSL-douban</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-dropbox"></i>
                    <div class="name">dropbox</div>
                    <div class="fontclass">.FSL-dropbox</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-dribbble"></i>
                    <div class="name">dribbble</div>
                    <div class="fontclass">.FSL-dribbble</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-aliyun"></i>
                    <div class="name">aliyun</div>
                    <div class="fontclass">.FSL-aliyun</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-ebay"></i>
                    <div class="name">ebay</div>
                    <div class="fontclass">.FSL-ebay</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-starbucks"></i>
                    <div class="name">starbucks</div>
                    <div class="fontclass">.FSL-starbucks</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-jd"></i>
                    <div class="name">jd</div>
                    <div class="fontclass">.FSL-jd</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-sina"></i>
                    <div class="name">sina</div>
                    <div class="fontclass">.FSL-sina</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-linkedin"></i>
                    <div class="name">linkedin</div>
                    <div class="fontclass">.FSL-linkedin</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-gitee"></i>
                    <div class="name">gitee</div>
                    <div class="fontclass">.FSL-gitee</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-teambition"></i>
                    <div class="name">teambition</div>
                    <div class="fontclass">.FSL-teambition</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-thetileapp"></i>
                    <div class="name">thetileapp</div>
                    <div class="fontclass">.FSL-thetileapp</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-xiaomi"></i>
                    <div class="name">xiaomi</div>
                    <div class="fontclass">.FSL-xiaomi</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-weibo"></i>
                    <div class="name">weibo</div>
                    <div class="fontclass">.FSL-weibo</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-instagram1"></i>
                    <div class="name">instagram</div>
                    <div class="fontclass">.FSL-instagram1</div>
                </li>
            
                <li>
                <i class="icon FSLfont FSL-icon-test1"></i>
                    <div class="name">12306</div>
                    <div class="fontclass">.FSL-icon-test1</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">FSLfont</span> <span class="hljs-selector-tag">FSL-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"FSLfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
